<template>
    <el-button :icon="icon" class="text content2 round" @click="goTo(url)" round>{{ text }}</el-button>
</template>

<style>
.el-button.round {
	border-radius: 25px;
}
</style>

<script>
import { push } from '~/router'

export default {
	props: {
		text: {
			type: String
		},
		icon: {
			type: String
		},
		url: {
			type: String
		}
	},
	methods: {
		goTo(name) {
			push(this, name);
		}
	}
}
</script>